package com.project.gcsj5.service.Impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.project.gcsj5.mapper.BooklistMapper;
import com.project.gcsj5.model.Booklist;
import com.project.gcsj5.service.BooklistService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class BooklistServiceImpl extends ServiceImpl<BooklistMapper, Booklist> implements BooklistService {

    @Autowired
    private BooklistMapper mapper;

    @Override
    public List<Booklist> find_re_id(int re_id) {
        List<Booklist> booklists = mapper.find_re_id(re_id);
        return booklists;
    }

    @Override
    public int insert_many(List<Booklist> booklists) {
        return mapper.insert_many(booklists);
    }

}
